package com.gitee.wsl.net.downloader.utils

import com.gitee.wsl.io.File
import com.gitee.wsl.ioDispatcher
import com.gitee.wsl.net.downloader.exception.NoSpaceInStorageException
import kotlinx.coroutines.Dispatchers
import kotlinx.coroutines.isActive
import kotlinx.coroutines.withContext
import kotlinx.io.IOException

interface EmptyFileCreator{
    suspend fun prepareFile(
        file: File,
        length: Long,
        onProgressUpdate: (percent: Int?) -> Unit,
    )
}


